projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93171cf
)
searchenginetracker: Ignore NULL directories
author
Benjamin Otte
<otte@redhat.com>
Sat, 1 Aug 2015 03:49:54 +0000
(
05:49
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 1 Aug 2015 03:50:20 +0000
(
05:50
+0200)
gtk/gtksearchenginetracker.c
patch
|
blob
|
history
diff --git
a/gtk/gtksearchenginetracker.c
b/gtk/gtksearchenginetracker.c
index bac7a09afda5a7e7dccef74be61efdede5b7db6a..f284a3ccd350fe5749e98b18b61a88f9493edc52 100644
(file)
--- a/
gtk/gtksearchenginetracker.c
+++ b/
gtk/gtksearchenginetracker.c
@@
-536,6
+536,9
@@
get_indexed_locations (GtkSearchEngineTracker *engine)
for (i = 0; locations[i] != NULL; i++)
{
path = path_from_tracker_dir (locations[i]);
+ if (path == NULL)
+ continue;
+
location = g_file_new_for_path (path);
g_ptr_array_add (engine->indexed_locations, location);
}